% (my/p,lambda)-sigmaSA-ES with intermediate recombination Slide 97, 106
% Michael Sieber, Philipp Rusch

N = 30;
parent = ones(N, 1);
d = 1;
sigma = 1.0;
sigma_stop = 10^-1;
test_func = 'Parabolic_Ridge';
[yp, sigma_dyn, fitness_dyn, generations] = one_plus_one_es(parent, N, sigma, sigma_stop, test_func, d);

% print the result
clf();
%plot(generations, sigma_dyn);
semilogy(generations, sigma_dyn);
%ylabel("Parental Fitness F(y)");
ylabel("Sigma");
xlabel("Generations");
%axis([0, 200, 10^-14, 10]); %[xmin, xmax, ymin, ymax]